import com.sun.deploy.security.SelectableSecurityManager;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: 花海
 * Date: 2022-07-27
 * Time: 15:22
 */
public class judge_PrimeNumber {
    public static boolean judge(int num) {
        for (int i = 2; i < Math.sqrt(num); i += 2) {
            if (num % i == 0) {
                return false;
            }

        }
        return true;
    }
        public static void main (String[]args){
            boolean flag = true;

            for (int j = 3; j <= 100; j++) {
                if(judge(j)){
                    System.out.println(j+"is a prime number");

                }


            }


        }
    }